package com.datam;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.datam.dao.CompanyInfoDAO;
import com.datam.domain.CompanyInfoDO;
import com.datam.utils.TestUtils;


/**
 * Hello world! 
 *
 */
@SpringBootApplication
@EnableScheduling
@MapperScan("com.datam.dao")
public class SrartApp extends SpringBootServletInitializer
{
    public static void main( String[] args )
    {
    	ApplicationContext context = SpringApplication.run(SrartApp.class, args);
    	// TestUtils.test(context);
    }
    
    @Override//为了打包springboot项目
    protected SpringApplicationBuilder configure(
            SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }
}
